<template>
  <view>
    <house-floor v-for="(item,index) in title" :key="index" :title="item.area+item.building"
      @click.native="chooseroom(item.area,item.building)">
    </house-floor>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        title: [],
      }
    },
    onLoad(options) {
      console.log(options);
      for (let i = 1; i < 10; i++) {
        this.title.push({
          area: options.title,
          building: i + "号楼"
        })
      }
    },
    methods: {
      chooseroom(val1, val2) {
        uni.navigateTo({
          url: '/pkg-house/house-room/house-room?room=' + val1 + '&building=' + val2
        })
      }
    }
  }
</script>

<style>

</style>
